<div class="main mt10" >
    <!-- Star of area2s -->
    <div class="area2s">
    	<!-- Star of Col1 -->
    	<div class="col1">
			<div class="breadCrumb">
				<div class="fl"><span class="cRed fb">当前位置：</span>&nbsp;<?php echo CHtml::link('首页', array('/')); ?>&nbsp;›&nbsp;<strong>联系我们</strong></div>
			</div> 
			<div class="qasContent mt10">
				<div class="msg">您有任何形式的疑问、咨询或者投诉建议，欢迎联系我们。 <br />提交以下表单后，您填写的内容将发送到我们邮箱，我们会很快对您进行回复。</div>
				<?php if(isset($_POST['ContactForm']) && ! $contact->hasErrors()) : ?>
				<div class="notice_oktext" style="margin-top: 10px;">邮件已经成功发送，谢谢支持！页面五秒钟后将跳转到首页，如没有跳转请点击<a href="<?php echo CHtml::normalizeUrl('/') ?>">这里</a>。</div>
				<?php endif ?>
				<div class="cb"></div>
				<div class="mt10"></div>
				<div class="post mt10">
                	<div class="postInner" id="postQA">
                        <h3 class="contactus">联系我们</h3>
                        <div class="postBody mt20">
                        <?php echo CHtml::form('', 'POST'); ?>
                            <table border="0" cellpadding="0" cellspacing="0">
                                <tbody>
                                    <tr>
                                        <td class="tr"><span class="cRed1">*</span> 姓名：</td>
                                        <td><?php echo CHtml::activeTextField($contact, 'name', array('class' => 'ipt3', 'size' => '35')); ?> &nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td class="tr"><span class="cRed1">*</span> 电子邮件：</td>
                                        <td><?php echo CHtml::activeTextField($contact, 'email', array('class' => 'ipt3', 'size' => '35')); ?> &nbsp;我们给您的回复将发送到该邮箱。</td>
                                    </tr>
                                    <tr>
                                        <td class="tr">电话：</td>
                                        <td><?php echo CHtml::activeTextField($contact, 'phone', array('class' => 'ipt3', 'size' => '35')); ?> &nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td class="tr" valign="top"><span class="cRed1">*</span> 内容：</td>
                                        <td><?php echo CHtml::activeTextArea($contact, 'content', array('class' => 'ipt3', 'style' => 'width: 420px; height: 180px;')); ?><!-- <p class="mt8">可以是咨询疑问，投诉建议。</p> --></td>
                                    </tr>
                                    <?php if(isset($_POST['ContactForm']) && $contact->hasErrors()) : ?>
                                    <tr>
                                    	<td>&nbsp;</td>
                                        <td>
				                        	<div class="notice_error"><?php foreach($contact->getErrors() as $error) : ?><?php echo $error[0] ?><?php endforeach ?></div>
                       					</td>
                                    </tr>
                                    <?php endif ?>
                                    <tr>
                                        <td>&nbsp;</td>
                                        <td><?php echo CHtml::submitButton('提交', array('class' => 'btn1')); ?></td>
                                    </tr>
                                </tbody>
                            </table>
                            <?php echo CHtml::endForm(); ?>
                        </div>
                    </div>
                </div>
			</div>
        </div>
        <!-- End of Col1 -->
        <!-- Star of Col2 -->
        <div class="col2">
        	<?php $this->widget('SearchBox') ?>
			<div class="smallAd"><?php echo CHtml::image(Yii::app()->baseUrl.'/images/a-exp1.png', '慧苑心理咨询专注于解决婚姻家庭亲子问题', array('title' => '慧苑心理咨询专注于解决婚姻家庭亲子问题')); ?></div>
        	<?php $this->widget('RandomPsy'); ?>
        </div>
        <!-- End of Col2 -->
    </div><!-- End of area3s -->
</div>
<?php if(isset($_POST['ContactForm']) && ! $contact->hasErrors()) : ?>
<script type="text/javascript">
window.setTimeout('window.location.href="<?php echo CHtml::normalizeUrl(array('/')) ?>"', 5000);
</script>
<?php endif ?>